<%@ Page Language="C#" 
    MasterPageFile="~/PAS/KCGInicioSesion.master" 
    AutoEventWireup="true" 
    CodeFile="PAR_ACCESO.aspx.cs" 
    Inherits="PAS_PAR_ACCESO" 
    Title="Ingreso al sistema" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" 
Namespace="AjaxControlToolkit" 
TagPrefix="cc1" %>

<asp:Content ID="Content1" 
    ContentPlaceHolderID="ContentPlaceHolder1" 
    Runat="Server">
    
    <div style="background :#E1E5E8 H; width:100%" align="center">
    
    <table width="781" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td >
                <img src="../imagenes/ImagesCG/fondos_02.jpg" width="27" height="369px" alt="" /></td>
            <td bgcolor="#3F5B8A" >
                 <table height="369px" border="0" cellpadding="0" cellspacing="0">
                    <tr width="728" height="229">
                        <td align="center">
                        
                            <table>
                                <tr align="center" >
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel1"
                                            runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:Panel ID="Rec_Usuario"
                                                runat="server" 
                                                Width="300px" 
                                                
                                                Wrap="False">
                                                
                                                <table>
                                                    <tr>
                                                        <td align="left">
                                                            <asp:Label ID="Lab_Txt_Usuario" 
                                                                runat="server" 
                                                                AssociatedControlID="Txt_Usuario"
                                                                style="color: captiontext"
                                                                ></asp:Label></td>
                                                        <td align="left">
                                                            <asp:TextBox ID="Txt_Usuario"
                                                                runat="server" MaxLength="50" ></asp:TextBox>
                                                            
                                                            <asp:RequiredFieldValidator runat="server" 
                                                                ID="UsuarioReq"
                                                                ControlToValidate="Txt_Usuario"
                                                                Display="None"
                                                                ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                                                Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/>
                                                            <cc1:ValidatorCalloutExtender runat="Server" 
                                                                ID="UsuarioReqE"
                                                                TargetControlID="UsuarioReq" /></td>
                                                    </tr>
                                                                
                                                    <tr>
                                                        <td align="left">
                                                            <asp:Label ID="Lab_Txt_Contrasenia" 
                                                                runat="server" AssociatedControlID="Txt_Contrasenia"
                                                                style="color: captiontext"></asp:Label>
                                                            
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="Txt_Contrasenia" 
                                                                runat="server" MaxLength="50" TextMode="Password" ></asp:TextBox>
                                                            
                                                            <asp:RequiredFieldValidator runat="server" 
                                                                ID="ContraseniaReq"
                                                                ControlToValidate="Txt_Contrasenia"
                                                                Display="None"
                                                                ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                                                Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/>
                                                            <cc1:ValidatorCalloutExtender runat="Server" 
                                                                ID="ContraseniaReqE"
                                                                TargetControlID="ContraseniaReq"/>
                                                            
                                                            </td>
                                                    </tr>
                                                    
                                                    <tr>
                                                        <td colspan="2" align="center">
                                                            <asp:Label ID="Mensaje" 
                                                                runat="server" 
                                                                EnableViewState="False"
                                                                style="color: captiontext"></asp:Label>&nbsp;</td>  
                                                    </tr>

                                                    <tr>
                                                        <td colspan="2" align="right">
                                                        <asp:Button ID="Btn_Conectarse" 
                                                        runat="server" 
                                                        OnClick="Btn_Conectarse_Click"  />
                                                        </td>
                                                    </tr>
                                                </table>
                                                
                                                
                                                    
                                                
                                                
                                            </asp:Panel>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                            
                                        <asp:UpdateProgress 
                                            ID="UpdateProgress1" 
                                            runat="server" 
                                            AssociatedUpdatePanelID="UpdatePanel1" 
                                            DisplayAfter="1">
                                            <ProgressTemplate>
                                                <div style="color: captiontext; vertical-align:middle; text-align:center;">
                                                    
                                                    <img src="../imagenes/ajaximagenes/cargando.gif" />
                                                </div>
                                            </ProgressTemplate>
                                        </asp:UpdateProgress> 
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                        <asp:Panel ID="Rec_Sesion" 
                                            runat="server" 
                                            Width="300px" 
                                            Wrap="False" 
                                            Enabled="False" 
                                            Visible="False" >
                                            
                                            <table>
                                                <tr>
                                                    <td align="left">
                                                        <asp:Label ID="Lab_Cmb_Empresa" 
                                                        runat="server" style="color: captiontext"
                                                        AssociatedControlID="Cmb_Empresa"></asp:Label></td>
                                                    <td align="left">
                                                        <asp:DropDownList ID="Cmb_Empresa" 
                                                            runat="server" AutoPostBack="True" 
                                                            OnSelectedIndexChanged="Cmb_Empresa_SelectedIndexChanged" >
                                                        </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td align="left">
                                                        <asp:Label ID="Lab_Cmb_Sucursales" 
                                                            runat="server" style="color: captiontext"
                                                            AssociatedControlID="Cmb_Sucursales"></asp:Label></td>
                                                    <td align="left">
                                                        <asp:DropDownList ID="Cmb_Sucursales" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Cmb_Sucursales_SelectedIndexChanged" >
                                                        </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td align="left">
                                                        <asp:Label ID="Lab_Cmb_Rol" 
                                                        runat="server" style="color: captiontext"
                                                        AssociatedControlID="Cmb_Rol"></asp:Label></td>
                                                    <td align="left">
                                                        <asp:DropDownList ID="Cmb_Rol" runat="server" >
                                                        </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td align="left">
                                                        <asp:Label ID="Lab_Cmb_Version" 
                                                        runat="server" style="color: captiontext"
                                                        AssociatedControlID="Cmb_Version"></asp:Label></td>
                                                    <td align="left">
                                                        <asp:DropDownList ID="Cmb_Version" runat="server" >
                                                        </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td >
                                                    </td>
                                                    <td align="left">
                                                        <asp:CheckBox ID="Chk_Recordar_Seleccion" style="color: captiontext"
                                                        runat="server"  /></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" align="right">
                                                        <asp:Button ID="Btn_Aceptar" 
                                                            runat="server" 
                                                            OnClick="Btn_Aceptar_Click"  />
                                                        <asp:Button ID="Btn_Cancelar" 
                                                            runat="server" 
                                                            OnClick="Btn_Cancelar_Click"  /></td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="Btn_Conectarse" 
                                            EventName="Click" />
                                        </Triggers>
                                    </asp:UpdatePanel>

                                    </td>
                                </tr>
                            
                            </table>
                              
                        </td>
                    </tr>
                   
                    <tr height="140px" >
                        <td valign="bottom">                     
                            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
                                codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
                                width="728" height="140">
                            <param name="movie" value="../imagenes/animaciones/Logomov.swf" />
                            <param name="quality" value="high" />
                            <embed src="../imagenes/animaciones/Logomov.swf" 
                                quality="high" 
                                pluginspage="http://www.macromedia.com/go/getflashplayer"
                                type="application/x-shockwave-flash" 
                                width="728" 
                                height="140"></embed>
                            </object>
                        </td>
                    </tr>
                 </table>
            </td>
            <td >
                <img src="../imagenes/ImagesCG/fondos_04.jpg" 
                width="26" height="369" alt="" /></td>
        </tr>
       
        <tr>
            <td>
                <img src="../imagenes/ImagesCG/fondos_07.jpg" width="27" height="35" alt="" /></td>
            <td>
                <img src="../imagenes/ImagesCG/fondos_08.jpg" width="728" height="35" alt="" /></td>
            <td>
                <img src="../imagenes/ImagesCG/fondos_09.jpg" width="26" height="35" alt=""></td>
        </tr>
        
        <tr>
            <td colspan="3">
                <img src="../imagenes/ImagesCG/fondos_10.jpg" width="781" height="16" alt="" /></td>
        </tr>
        
       
        <tr height="120px" valign="middle" align="center">
            <td colspan="3" bgcolor="#E1E5E8">
                <img src="../imagenes/ImagesCG/fondos_16.jpg" width="111" height="84" alt="" /></td>
        </tr>
    </table>
        
<cc1:updatepanelanimationextender id="UpdatePanelAnimationExtender1" 
    runat="server" 
    TargetControlID="UpdatePanel1">
    <Animations>
        <OnUpdating>
            <Sequence>
                <Parallel duration="0">
                    <EnableAction AnimationTarget="Btn_Conectarse" Enabled="false" />
                </Parallel>
                <Parallel duration="0">
                    <EnableAction AnimationTarget="Txt_Usuario" Enabled="false" />
                </Parallel>
                <Parallel duration="0">
                    <EnableAction AnimationTarget="Txt_Contrasenia" Enabled="false" />
                </Parallel>
            </Sequence>
        </OnUpdating>
<%--            <OnUpdated>
            
        </OnUpdated> --%>        
    </Animations>
</cc1:updatepanelanimationextender>
    
    
    
    
    
    <table style="width: 100%; height: 500px; vertical-align:middle;">
    <tr align="center">
        <td align="center">

    
    
    
    
    
    

    

   
   
        </td>
    </tr>
        
    <tr align="center">
        <td align="center">
    
   
   

    
        </td>
    </tr>
    
    </table>
    
    </div>

</asp:Content>

